package objectView;

import java.io.Serializable;

import uploadServer.UploadImg;

public class EmployeeInfo implements Serializable{
	private String emId;
	private String emFullName;
	private String emBirthDay;
	private boolean emSex;
	private String emCMTND;
	private String emHT;
	private String emCur;
	private String emMobile;
	private String emPhone;
	private String emEmail;
	private String diplomasName;
	private String specName;
	private String emImage;
	private int depId;
	private String depName;
	private String posName;
	private String emTName;
	private int emContract;
	private String contractName;
	private String emDateStart;
	private String emDateEnd;
	
	public String getEmId() {
		return emId;
	}
	public void setEmId(String emId) {
		this.emId = emId;
	}
	public String getEmFullName() {
		return emFullName;
	}
	public void setEmFullName(String emFullName) {
		this.emFullName = emFullName;
	}
	public String getEmBirthDay() {
		return emBirthDay;
	}
	public void setEmBirthDay(String emBirthDay) {
		this.emBirthDay = emBirthDay;
	}
	public void setSex(boolean emSex){
		this.emSex = emSex;
	}
//	Ham dung hien thi
	public String getEmSex() {
		if(emSex == true){
			return "Nam";
		}else{
			return "Nữ";
		}
	}
	public String getEmCMTND() {
		return emCMTND;
	}
	public void setEmCMTND(String emCMTND) {
		this.emCMTND = emCMTND;
	}
	public String getEmHT() {
		return emHT;
	}
	public void setEmHT(String emHomeTownAdd,String districtHT, String provinceHT) {
		if(emHomeTownAdd == null || emHomeTownAdd.isEmpty()){
			emHomeTownAdd = "";
		}else{
			emHomeTownAdd = emHomeTownAdd +" - ";
		}
		this.emHT = emHomeTownAdd + districtHT +" - "+ provinceHT;
	}
	public String getEmCur() {
		return emCur;
	}
	public void setEmCur(String emCurrentAdd, String districtCur, String provinceCur) {
		if(emCurrentAdd == null || emCurrentAdd.isEmpty()){
			emCurrentAdd = "";
		}else{
			emCurrentAdd = emCurrentAdd +" - ";
		}
		this.emCur = emCurrentAdd + districtCur +" - "+ provinceCur;
	}
	public String getEmMobile() {
		return emMobile;
	}
	public void setEmMobile(String emMobile) {
		this.emMobile = emMobile;
	}
	public String getEmPhone() {
		return emPhone;
	}
	public void setEmPhone(String emPhone) {
		this.emPhone = emPhone;
	}
	public String getEmEmail() {
		return emEmail;
	}
	public void setEmEmail(String emEmail) {
		this.emEmail = emEmail;
	}
	public String getDiplomasName() {
		return diplomasName;
	}
	public void setDiplomasName(String diplomasName) {
		this.diplomasName = diplomasName;
	}
	public String getSpecName() {
		return specName;
	}
	public void setSpecName(String specName) {
		this.specName = specName;
	}
	public String getEmImage() {
		return emImage;
	}
	public void setEmImage(String emImage) {
		if(emImage == null || emImage.isEmpty()){
			this.emImage = "";
		}else{
			this.emImage = UploadImg.path+emImage;
		}
	}
	public int getDepId() {
		return depId;
	}
	public void setDepId(int depId) {
		this.depId = depId;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getPosName() {
		return posName;
	}
	public void setPosName(String posName) {
		this.posName = posName;
	}
	public String getEmTName() {
		return emTName;
	}
	public void setEmTName(String emTName) {
		this.emTName = emTName;
	}
	public int getEmContract() {
		return emContract;
	}
	public void setEmContract(int emContract) {
		this.emContract = emContract;
	}
	public String getContractName() {
		return contractName;
	}
	public void setContractName(String contractName) {
		this.contractName = contractName;
	}
	public String getEmDateStart() {
		return emDateStart;
	}
	public void setEmDateStart(String emDateStart) {
		this.emDateStart = emDateStart;
	}
	public String getEmDateEnd() {
		return emDateEnd;
	}
	public void setEmDateEnd(String emDateEnd) {
		this.emDateEnd = emDateEnd;
	}
	
	
}
